<template>
  <div class="entriesdetails w1200">
    <div class="entriesdetails-box flex">
      <div class="entriesdetails-box-left">
        <img :src="detailsCentent.articleImg"/>
      </div>
      <div class="entriesdetails-box-right">
        <div class="right-title">参赛作品</div>
        <div class="number">编号:{{detailsCentent.worksId}}</div>
        <div class="box-list">
          <div class="flex box">
            <span>
              <img src="../../assets/images/dwmc.png" alt="">
            </span>
            <div>队伍名称:<span>{{detailsCentent.teamName}}</span></div>
          </div>
          <div class="flex box">
            <span>
              <img src="../../assets/images/csdw.png" alt="">
            </span>
            <div>参赛单位:<span>{{detailsCentent.participatingUnits}}</span></div>
          </div>
          <div class="flex box">
            <span>
              <img src="../../assets/images/tdcy.png" alt="">
            </span>
            <div>团队成员:<span>{{detailsCentent.teamMember}}</span></div>
          </div>
          <div class="flex box">
            <span>
              <img src="../../assets/images/cstm.png" alt="">
            </span>
            <div>作品名称:<span>{{detailsCentent.worksName}}</span></div>
          </div>
          <hr />
        </div>
        <div class="box-centent">
          <p v-html="detailsCentent.context"></p>
        </div>
        <div class="box-enclosure">
          <img src="../../assets/images/cstm.png" alt="">
          <span>查看附件</span>
        </div>
        <div class="box-enclosure-content flex">
          <div class="centent-text">
            <a :href="attachmentList.fileUrl" target="_blank">{{attachmentList.fileName}}</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import API from '../../api/content'
  export default {
    data() {
      return {
        articleId:'',
        detailsCentent:'',
        attachmentList:''
      }
    },
    created() {
      this.articleId = this.$route.query.articleId
      this.details()
    },
    methods:{
      details() {
        let params = {
          articleId:this.articleId
        }
        API.ArticleDetail(params).then(res =>{
          if(res.code == 0) {
            this.detailsCentent = res.data
          }
          
        })
      }
    }
  }
</script>

<style lang="scss">
  .entriesdetails {
    margin-top: -15px;
    .entriesdetails-box {
      height: 1014px;
      .entriesdetails-box-left {
        padding-top: 124px;
        width: 440px;
        border-right: 1px solid #dddddd;
      }
      .entriesdetails-box-right {
        width: 760px;
        .right-title {
          font-size: 18px;
          font-weight: 600;
          color: #b0b0b0;
          padding-top: 60px;
          padding-left: 114px;
        }
        .number {
          margin-top: 55px;
          margin-bottom: 30px;
          padding-left: 20px;

        }
        .box-list {
          padding-left: 20px;
          .box {  
            span {
              padding-bottom: 20px;
              padding-right: 7px;
              img {
                vertical-align: middle;
              }
            }
          }
        }
        .box-centent {
          padding: 20px;
        }
        hr {
          width: 750px;
        }
        .box-enclosure {
          padding-left: 20px;
          height: 56px;
          line-height: 56px;
          background-color: #f1f2f3;
          color: #333333;
          img {
            vertical-align: middle;
          }
        }
        .box-enclosure-content {
          align-content: center;
          padding-left: 20px;
          margin-top: 40px;
          height: 33px;
          line-height: 33px;
          .centent-text {
            margin-left: 10px;
          }
        }
      }
    }
  }
</style>